package wangjg.android.media.h264;

public class Decoder {

	public int init(int width, int height) {
		return InitDecoder(width, height);
	}

	public int release() {
		return UninitDecoder();
	}

	public int decodeNal(byte[] in, int insize, byte[] out) {
		return DecoderNal(in, insize, out);
	}

	public native int InitDecoder(int width, int height);

	public native int UninitDecoder();

	public native int DecoderNal(byte[] in, int insize, byte[] out);

	static {
		System.loadLibrary("H264Android");
	}
}
